﻿@model ProfileInfoModel
@using Nop.Web.Models.Profile;
<div class="profile-info-box">
    <div class="user-details">
        @if (!String.IsNullOrEmpty(Model.AvatarUrl))
        {
            <div class="avatar">
                <img src="@(Model.AvatarUrl)" class="avatar-img" alt="Avatar" />
            </div>         
        }
        @if (Model.LocationEnabled)
        {            
            <ul class="user-stats">
                    <li class="location">
                <label>@T("Profile.Country"):</label>
                    <span>@Model.Location</span>
                        </li>
            </ul>
        }
        @if (Model.PMEnabled)
        {
            <div class="send-pm-box">
                @Html.RouteLink(T("Forum.PrivateMessages.PM").Text, "SendPM", new { toCustomerId = Model.CustomerProfileId }, new { @class = "pm-link-button" })
            </div>
        }
        @Html.Widget("profile_page_info_userdetails", Model.CustomerProfileId)
    </div>
    <div class="profile-stats">
        <div class="title">
            @T("Profile.Statistics")
        </div>
        <ul>
        @if (Model.TotalPostsEnabled)
        {
            <li>
                <label>@T("Profile.TotalPosts"):</label>
                <span>@Model.TotalPosts</span>
            </li>          
        }
        @if (Model.JoinDateEnabled)
        {        
            <li>
                <label>@T("Profile.JoinDate"):</label>
                <span>@Model.JoinDate</span>
            </li>
        }
        @if (Model.DateOfBirthEnabled)
        {
            <li>
                <label>@T("Profile.DateOfBirth"):</label>
                <span>@Model.DateOfBirth</span>
            </li>
        }
            </ul>
        @Html.Widget("profile_page_info_userstats", Model.CustomerProfileId)
    </div>
</div>
